package com.eqdd.yiqidian.ui.mine.shenqing;

import android.databinding.DataBindingUtil;

import com.eqdd.yiqidian.R;
import com.eqdd.yiqidian.base.BaseActivity;
import com.eqdd.yiqidian.MemoInfoActivityCustom;
import com.eqdd.yiqidian.bean.rebuild.MemoResultBean;
import com.eqdd.yiqidian.bean.rebuild.slimedit.SlimEditHintBean;
import com.eqdd.yiqidian.ui.base.SlimBaseMultiEditActivity;

import android.support.v7.widget.RecyclerView;
import android.view.View;

import java.io.Serializable;

public class MemoInfoActivity extends SlimBaseMultiEditActivity {
    private MemoInfoActivityCustom dataBinding;
    private MemoResultBean memoResultBean;

    @Override
    public void initBinding() {
        memoResultBean = (MemoResultBean) getIntent().getSerializableExtra("bean");
        dataBinding = DataBindingUtil.setContentView(this, R.layout.activity_memo_info);
        initTopTitleBar(View.VISIBLE, "事件详情");
    }


    @Override
    protected RecyclerView initRecyclerView() {
        return dataBinding.recyclerView;
    }

    @Override
    public void itemClick(int p) {

    }


    @Override
    protected void setEditBeans() {
        datas.add(new SlimEditHintBean("标题", memoResultBean.getEventName(), 0));
        datas.add(new SlimEditHintBean("备注", memoResultBean.getEventName(), 1));
        datas.add(new SlimEditHintBean("地点", memoResultBean.getPlace(), 2));
        datas.add(new SlimEditHintBean("开始日期", memoResultBean.getStartDate(), 3));
        datas.add(new SlimEditHintBean("结束日期", memoResultBean.getEndDate(), 4));
        datas.add(new SlimEditHintBean("开始时间", memoResultBean.getStartTime(), 5));
        datas.add(new SlimEditHintBean("结束时间", memoResultBean.getEndTime(), 6));
        datas.add(new SlimEditHintBean("提前提醒时间", memoResultBean.getTimeToRemind() + "分钟", 7));
    }

    @Override
    public void onClick(View v) {
        super.onClick(v);
        switch (v.getId()) {

        }
    }
}
